#pragma once
#include "const.h"
using tcp = boost::asio::ip::tcp;

class CServer : public std::enable_shared_from_this<CServer>
{

public:
    CServer(boost::asio::io_context& ioc, unsigned short& port);
    void Start();
private:
    boost::asio::io_context& _ioc;   //上下文
    tcp::acceptor _acceptor;	//接收器
};